import Layout from '@/layout'
export default [
  {
    path: '/c',
    component: Layout,
    redirect: '/c/data',
    meta: { title: '数据', icon: 'dashboard' },
    children: [{
      path: 'data',
      name: 'cdata',
      component: () => import('@/views/c/data/index'),
      meta: { title: '数据', icon: 'dashboard' }
    }]
  },
  {
    path: '/c/advertisement',
    component: Layout,
    meta: { title: '广告编辑', icon: 'dashboard' },
    children: [{
      path: 'carousel',
      name: 'carousel',
      component: () => import('@/views/c/advertisement/carousel.vue'),
      meta: { title: '轮播', icon: '' }
    }, {
      path: 'link',
      name: 'link',
      component: () => import('@/views/c/advertisement/link.vue'),
      meta: { title: '链接', icon: '' }
    }]
  },
  {
    path: '/c/goods',
    redirect: '/c/goods/list',
    component: Layout,
    meta: { title: '商品管理', icon: 'dashboard' },
    children: [{
      path: 'list',
      name: 'goodsList',
      component: () => import('@/views/c/goods/list.vue'),
      meta: { title: '商品列表', icon: '' }
    }, {
      path: 'stock',
      name: 'cStock',
      component: () => import('@/views/c/goods/stock.vue'),
      meta: { title: '库存管理', icon: '' }
    }, {
      path: 'category',
      name: 'cCategory',
      component: () => import('@/views/c/goods/category.vue'),
      meta: { title: '商品分类', icon: '' }
    }, {
      path: 'attribute',
      name: 'cAttribute',
      component: () => import('@/views/c/goods/attribute.vue'),
      meta: { title: '属性管理', icon: '' }
    }, {
      path: 'brand',
      name: 'cbrand',
      component: () => import('@/views/c/goods/brand.vue'),
      meta: { title: '品牌管理', icon: '' }
    }, {
      path: 'commission',
      name: 'cCommission',
      component: () => import('@/views/c/goods/commission.vue'),
      meta: { title: '普通商品佣金设置', icon: '' }
    }, {
      path: 'comment',
      name: 'comment',
      component: () => import('@/views/c/goods/comment.vue'),
      meta: { title: '评价管理', icon: '' }
    }]
  },
  {
    path: '/c/coupon',
    component: Layout,
    redirect: '/coupon/detail',
    meta: { title: '优惠券', icon: 'dashboard' },
    children: [
      {
        path: 'detail',
        component: () => import('@/views/c/coupon/index'),
        meta: { title: '优惠券', icon: 'dashboard' }
      }
    ]
  },
  {
    path: '/c/order',
    redirect: '/c/order/normal',
    component: Layout,
    meta: { title: '订单管理', icon: 'dashboard' },
    children: [{
      path: 'normal',
      name: 'normalDetail',
      component: () => import('@/views/c/order/normal.vue'),
      meta: { title: '普通订单', icon: '' }
    }, {
      path: 'represent',
      name: 'cRepresent',
      component: () => import('@/views/c/order/represent.vue'),
      meta: { title: '代言订单', icon: '' }
    }, {
      path: 'saleAfter',
      name: 'saleAfter',
      component: () => import('@/views/c/order/saleAfter.vue'),
      meta: { title: '售后订单', icon: '' }
    }]
  },
  {
    path: '/c/member',
    redirect: '/c/member/normal',
    component: Layout,
    name: 'Member',
    meta: { title: '会员管理', icon: 'dashboard' },
    children: [{
      path: 'normal',
      name: 'normal',
      component: () => import('@/views/c/member/normal.vue'),
      meta: { title: '普通会员', icon: '' }
    }, {
      path: 'vip',
      name: 'vip',
      component: () => import('@/views/c/member/vip.vue'),
      meta: { title: 'vip会员', icon: '' }
    }]
  },
  {
    path: '/c/represent',
    redirect: '/c/represent/list',
    component: Layout,
    meta: { title: '代言管理', icon: 'dashboard' },
    children: [{
      path: 'list',
      name: 'clist',
      component: () => import('@/views/c/represent/list.vue'),
      meta: { title: '代言列表', icon: '' }
    }, {
      path: 'observation',
      name: 'observation',
      component: () => import('@/views/c/represent/firstChartApproval.vue'),
      meta: { title: '第一张图审批', icon: '' }
    }, {
      path: 'refund',
      name: 'refund',
      component: () => import('@/views/c/represent/refund.vue'),
      meta: { title: '退款审批', icon: '' }
    }, {
      path: 'rules',
      name: 'rules',
      component: () => import('@/views/c/represent/rules.vue'),
      meta: { title: '代言规则设置', icon: '' }
    }]
  },
  {
    path: '/c/distribution',
    redirect: '/c/distribution/detail',
    component: Layout,
    meta: { title: '分销管理', icon: 'dashboard' },
    children: [{
      path: 'detail',
      name: 'listDetail',
      component: () => import('@/views/c/distribution/index'),
      meta: { title: '用户分销排行', icon: '' }
    }, {
      path: '',
      name: ''
    }]
  },
  {
    path: '/c/cash',
    component: Layout,
    redirect: '/b/cash/detail',
    meta: { title: '提现管理', icon: 'dashboard' },
    children: [
      {
        path: 'detail',
        component: () => import('@/views/c/cash/index'),
        meta: { title: '提现管理', icon: 'dashboard' }
      }
    ]
  },
  {
    path: '/c/platform',
    redirect: '/c/platform/content',
    component: Layout,
    name: 'Platform',
    meta: { title: '平台设置', icon: 'dashboard' },
    children: [{
      path: 'content',
      name: 'content',
      component: () => import('@/views/c/platform/content.vue'),
      meta: { title: '平台内容', icon: '' }
    }, {
      path: 'system',
      name: 'System',
      component: () => import('@/views/c/platform/system.vue'),
      meta: { title: '系统消息', icon: '' }
    }, {
      path: 'express',
      name: 'express',
      component: () => import('@/views/c/platform/express.vue'),
      meta: { title: '物流设置', icon: '' }
    }, {
      path: 'register',
      name: 'register',
      component: () => import('@/views/c/platform/register.vue'),
      meta: { title: '注册协议设置', icon: '' }
    }, {
      path: 'shopping',
      name: 'shopping',
      component: () => import('@/views/c/platform/shopping.vue'),
      meta: { title: '购物协议设置', icon: '' }
    }, {
      path: 'goodsService',
      name: 'goodsService',
      component: () => import('@/views/c/platform/goodsService.vue'),
      meta: { title: '商品服务保障设置', icon: '' }
    }, {
      path: 'setting',
      name: 'setting',
      component: () => import('@/views/c/platform/setting.vue'),
      meta: { title: '修改密码', icon: '' }
    }]
  },
  {
    path: '/c/authority',
    component: Layout,
    redirect: '/authority/detail',
    meta: { title: '权限管理', icon: 'dashboard' },
    children: [
      {
        path: 'detail',
        component: () => import('@/views/c/authority/index'),
        meta: { title: '权限管理', icon: 'dashboard' }
      }
    ]
  }
]
